<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>留言管理 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/dtree.css?11">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/font/dtreefont.css">
<script src="//cdn.hdsyscms.com/jq/jquery-1.11.1.min.js"></script>
<script src="//cdn.hdsyscms.com/lightbox/lightbox.js?456"></script>
<link href="//cdn.hdsyscms.com/lightbox/lightbox.css" rel="stylesheet">
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-header">留言管理</div>
<div class="layui-card-body">
<form class="layui-form" id="soso-form" onsubmit="return false;" action="">
<div class="layui-form layui-soso1">
<div class="layui-form-item">
<div class="layui-input-inline" style="width:100px!important">
<select name="soso_id" id="soso_id" lay-filter="soso_id">
<option value="0">综合搜索</option>
<option value="1">标题</option>
<option value="2">联系姓名</option>
<option value="3">联系类型</option>
<option value="4">联系号码</option>
<option value="5">留言内容</option>
<option value="6">备注</option>
</select>
</div>
<div class="layui-input-inline" style="width:250px!important">
<input onkeydown="if(event.keyCode==13){  document.getElementById('binsoso').click(); }" type="text" class="layui-input" name="soso" id="soso" placeholder="请输入搜索内容">
</div>
<button id="binsoso" lay-submit lay-filter="LAY-user-front-search" class="layui-btn layui-btn-sm1 layuiadmin-btn-useradmin"><i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>搜索</button>
</div>
</div>
</form>
<table lay-even lay-skin="nob" lay-size="lg" class="layui-hide" id="test-table-toolbar" lay-filter="test-table-toolbar"></table>
<script type="text/html" id="test-table-toolbar-toolbarDemo"><div class="layui-btn-container"><button class="layui-btn layui-btn-sm" lay-event="act_5">删除选择</button></div></script>
<script type="text/html" id="test-table-toolbar-barDemo"><a class="layui-btn layui-btn-xs" lay-event="del"><i class="layui-icon">&#xe640;</i>删除</a></script>
<script type="text/html" id="titleTpl">{{# if(d.graph !=''){ }}<a class="example-image-link" href="javascript:void(0);" data-url="{{ d.graph }}" data-title="" data-lightbox="example-set"><img class="templetimg example-image-link" src="//cdn.hdsyscms.com/hdsyscms/statics/thumbnail.svg" lay-src="{{ d.graph }}"></a>{{# } else { }}<a class="example-image-link" href="javascript:void(0);" data-url="{{ d.graph }}" data-title="" data-lightbox="example-set"><img class="templetimg example-image-link" src="//cdn.hdsyscms.com/hdsyscms/statics/thumbnail.svg" lay-src="{{ d.graph }}"></a>{{# } }}</script>
</div>
</div>
</div>
</div>
</div>
<?php adminechohtnl(); ?>
<div id="foot">Copyright © 2019-2023 <a href="https://www.HDSysCms.Com?pro" target="_blank">HDSysCms <?php echo HDSYS_VERSION; ?></a> <br>
All Rights Reserved </div>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>var DemoTree='';var bsphp_all='';layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).extend({index: 'lib/index'}).use(['jquery', 'index', 'dtree', 'form', 'table', 'flow', 'layer'], function() {var admin=layui.admin,$=layui.$,dtree=layui.dtree,form=layui.form,dropdown=layui.dropdown,table=layui.table;var flow=layui.flow;flow.lazyimg();$("body").on("click", function(event) {$("div[dtree-id][dtree-select]").removeClass("layui-form-selected");$("div[dtree-id][dtree-card]").removeClass("dtree-select-show layui-anim layui-anim-upbit");});table.on('toolbar(test-table-toolbar)', function(obj) {var checkStatus=table.checkStatus(obj.config.id);bsphp_all='';var data=checkStatus.data;for (var key in data) {bsphp_all=bsphp_all + data[key]['id'] + ',';}bsphp_all=bsphp_all + '0';switch (obj.event) {case 'act_5':layer.confirm('你确定删除吗？', {btn: ['确定', '取消']}, function() {$.ajax({type: "post",url: 'index.php?m=manage&c=Contact&a=table_set_ajax',data: 'josn=ok&all=' + bsphp_all + '&type=5',dataType: "json",success: function(ret) {layer.alert(ret.msg);table.reload('test-table-toolbar', {page: {curr: 1}});},error: function(e, t) {layer.alert('接口请求返还异常');}});}, function() {});break;};});table.render({elem: '#test-table-toolbar',url: 'index.php?m=<?php echo set_get('m'); ?>&c=<?php echo set_get('c'); ?>&a=<?php echo set_get('a'); ?>_ajax&json=get&soso_ok=1',toolbar: '#test-table-toolbar-toolbarDemo',title: '产品列表',groups: 1  ,height: 'full-210',first: false  ,last: false  ,cols: [[{field: 'id',type: 'checkbox',width: 40,fixed: 'left'},{field: 'id',width: 60,title: 'id',},{field: 'title',width: 330,title: '标题',},{field: 'name',width: 150,title: '姓名',},{field: 'type',width: 150,title: '联系方式',},{field: 'contact',width: 150,title: '联系号码',},{field: 'remarks',width: 230,title: '备注(点击编辑)',edit:true},{field: 'info1',width: 230,title: '预留内容',},{field: 'text',minWidth: 500,title: '留言内容',},{fixed: 'right',title: '操作',toolbar: '#test-table-toolbar-barDemo',width: 100}]],page: true,skin: 'line',limits: [10,20,50,100,300,500,5000],done: function(res, curr, count) {}});table.on('edit(test-table-toolbar)', function(obj) {var value=obj.value  ,data=obj.data  ,field=obj.field;$.ajax({type: "post",url: 'index.php?m=manage&c=<?php echo set_get('c') ?>&a=edit_table_ajax',data: 'id=' + data.id + "&field=" + value,dataType: "json",success: function(ret) {layer.msg(ret.msg);},error: function(e, t) {layer.alert('接口请求返还异常');}});});table.on('tool(test-table-toolbar)', function(obj) {var data=obj.data;var that=this;if (obj.event==='del') {layer.confirm('你确定删除吗？', {btn: ['确定', '取消']}, function() {$.ajax({type: "post",url: 'index.php?m=manage&c=<?php echo set_get('c') ?>&a=del_ajax',data: 'id=' + data.id,dataType: "json",success: function(ret) {layer.msg(ret.msg);table.reload('test-table-toolbar', {page: {curr: 1}});},error: function(e, t) {layer.alert('接口请求返还异常');}})}, function() {});} else if (obj.event==='edit') {location.href='index.php?m=manage&c=<?php echo set_get('c') ?>&a=edit&id=' + data.id;} else if (obj.event==='more') {}});form.on('submit(LAY-user-front-search)', function(data) {table.reload('test-table-toolbar', {page: {curr: 1},where: data.field});});$('.bin-add').on('click', function() {location.href="index.php?m=manage&c=<?php echo set_get('c') ?>&a=add";});});</script>
</body>
</html>